package com.example.micro.dubbo.provider.service;

import com.example.micro.dubbo.api.entity.User;
import com.example.micro.dubbo.api.service.IUserService;
import org.apache.dubbo.config.annotation.Service;

@Service(version = "1.0")
public class UserServiceImpl implements IUserService {

    @Override
    public User selectByUserId(Integer id) {
        User user = new User();
        user.setId(id);
        user.setUserName("name:" + id);
        System.out.println("接收到客户端id：" + id);
        return user;
    }

}
